<%@page import="cn.sendto.service.CarInfoService"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="../err.jsp"%>
    <jsp:include page="../lock.jsp"></jsp:include>
<%
	request.setCharacterEncoding("UTF-8");
String SbID = request.getParameter("SbID");
	String Sbname = request.getParameter("Sbname");
	int Sbtype =Integer.parseInt(request.getParameter("Sbtype")) ;
	String Chargeman = request.getParameter("Chargeman");
	String Status = request.getParameter("Status");
	String Department = request.getParameter("Department");
	
	
	
	CarInfoService cis = new CarInfoService();
	int i = cis.modcar(Sbname,Sbtype,Chargeman,Status,Department,SbID);
	if(i > 0 ){
		request.setAttribute("carinfo", "修改成功");
		request.getRequestDispatcher("carlist.jsp").forward(request, response);
		return;
	}else{
		request.setAttribute("carinfo", "修改失败");
		request.getRequestDispatcher("carlist.jsp").forward(request, response);
		return;
	}


%>